package main

import (
	"power/core/localwrap"
	"power/http"
	"power/ws"
	"runtime"
)

var log = localwrap.GetLogger().Fork("template", "main")

func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())
	log.Info().Func("main").Interface("config", localwrap.Config).Send()
	go ws.Start(localwrap.Config.Ws.Listen)
	http.NewApp().Listen(localwrap.Config.Http.Listen)
}
